@import 'mo/style/common';

#{$menuBar} {
    align-items: center;
    background-color: var(--activityBar-background);
    color: var(--activityBar-inactiveForeground);
    cursor: pointer;
    display: flex;
    font-size: 13px;
    height: 35px;
    justify-content: center;
    overflow: hidden;
    width: 48px;

    #{$menu} {
        &__item {
            &:hover {
                background-color: var(--menubar-selectionBackground);
                border-color: var(--menubar-selectionBorder);
                color: var(--menubar-selectionForeground);
            }
        }
    }

    &--left {
        left: 0;
        top: 0;
    }

    &__action {
        font-size: 16px;
    }

    &--horizontal {
        align-items: center;
        background-color: var(--activityBar-background);
        display: flex;
        height: 30px;
        justify-content: center;
        width: 100%;

        > #{$menu} {
            background-color: inherit;
            box-shadow: none;
            color: var(--foreground);
            height: 100%;

            &--horizontal {
                #{$menu}__item {
                    min-width: auto;
                }

                > #{$menu}__item > #{$menu}__content {
                    > #{$menu}__label {
                        flex: none;
                        font-size: 13px;
                        padding: 0 1em;
                    }

                    > #{$menu}__indicator {
                        display: none;
                    }
                }
            }

            > #{$menu}__item > #{$subMenu} {
                z-index: 2500;
            }
        }

        &__logo {
            align-items: center;
            display: flex;
            flex: 0 0 48px;
            height: 100%;
            justify-content: center;
            overflow: hidden;

            &__content {
                height: 20px;
                width: 20px;
            }
        }
    }
}
